﻿using Camc.Quality.RecordTable.FormBase;
using Camc.Quality.RecordTable.FormClass;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.RecordTable.FormEntity
{
    public class 管路活门气密点检查记录表皂泡法 : TableBase
    {
        public 管路活门气密点检查记录表皂泡法(int serialNum, Guid workStepEntityId, Guid processesEntityId, int sort, string parentProductNum, string fisrtDrawingNum, string secondDrawingNum, string recordElement)
        {
            SerialNum = serialNum;
            WorkStepEntityId = workStepEntityId;
            ProcessesEntityId = processesEntityId;
            Sort = sort;

            ParentProductNum = parentProductNum;
            FisrtDrawingNum = fisrtDrawingNum;
            SecondDrawingNum = secondDrawingNum;
            RecordElement = recordElement;
        }
        public override string FormName { get; protected set; } = "管路活门气密点检查记录表皂泡法";

        public override string ParentProductNum_DisplayName { get; protected set; } = "系统名称";
        public override bool ParentProductNum_Show { get; protected set; } = true;

        public override string FisrtDrawingNum_DisplayName { get; protected set; } = "测点前管路图号";
        public override bool FisrtDrawingNum_Show { get; protected set; } = true;

        public override string SecondDrawingNum_DisplayName { get; protected set; } = "测点后管路图号";
        public override bool SecondDrawingNum_Show { get; protected set; } = true;

        public override string RecordElement_DisplayName { get; protected set; } = "检查方法";
        public override bool RecordElement_Show { get; protected set; } = true;

        public RecordRequirementsEntity SetRecordRequirements(RecordRequirementsEntity entity,string recordRequire, string designerDemand, string processorDemand, string remarks)
        {
            entity.SetRecordRequire(recordRequire, "检查压力(MPa)", false, true, 0);
            entity.SetDesignerDemand(designerDemand, "设计要求值Pa*m3/s", false, true, 0);
            entity.SetProcessorDemand(processorDemand, "工艺要求值", false, true, 0);
            entity.SetRemarks(remarks, "备注", false, true, 0);
            return entity;
        }
        public MeasuredResultEntity SetMeasuredResult(MeasuredResultEntity entity, string firstMeasuredValues)
        {
            entity.SetFirstMeasuredValues(firstMeasuredValues, "检查结果", true, true, 0);
            return entity;
        }
    }
}
